#!/bin/bash

mpstat $1 $2 > serv.txt

if [ $1 = "laide" ]; then

echo "hello laide"
else 
echo "Who are you"

if [ $1 = "cache" ]; then
echo "the number of processors are:"
grep processor /proc/cpuinfo | wc -l

elif [ $1 = "speed" ]; then
grep speed /proc/cpuinfo | wc -l
fi

>output.dat
